<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>斜坡运动 - 实验说明</title>
        <!-- Favicon -->
        <link rel="icon" type="image/svg+xml" href="/favicon.svg">
        <link rel="icon" type="image/png" href="/favicon.png">
        <link rel="apple-touch-icon" href="/apple-touch-icon.png">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- KaTeX CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css">
    <style>
        :root {
            /* MD3 颜色系统 - Light主题 */
            --md-sys-color-primary: #6750A4;
            --md-sys-color-on-primary: #FFFFFF;
            --md-sys-color-primary-container: #EADDFF;
            --md-sys-color-on-primary-container: #21005E;
            --md-sys-color-secondary: #625B71;
            --md-sys-color-on-secondary: #FFFFFF;
            --md-sys-color-secondary-container: #E8DEF8;
            --md-sys-color-on-secondary-container: #1E192B;
            --md-sys-color-tertiary: #7D5260;
            --md-sys-color-on-tertiary: #FFFFFF;
            --md-sys-color-tertiary-container: #FFD8E4;
            --md-sys-color-on-tertiary-container: #370B1E;
            --md-sys-color-error: #B3261E;
            --md-sys-color-on-error: #FFFFFF;
            --md-sys-color-error-container: #F9DEDC;
            --md-sys-color-on-error-container: #370B1E;
            --md-sys-color-background: #FFFBFE;
            --md-sys-color-on-background: #1C1B1F;
            --md-sys-color-surface: #FFFBFE;
            --md-sys-color-on-surface: #1C1B1F;
            --md-sys-color-surface-variant: #E7E0EC;
            --md-sys-color-on-surface-variant: #49454F;
            --md-sys-color-outline: #79747E;
            
            /* 圆角 */
            --md-sys-shape-corner-small: 8px;
            --md-sys-shape-corner-medium: 12px;
            --md-sys-shape-corner-large: 16px;
            --md-sys-shape-corner-extra-large: 28px;
            
            /* 阴影 */
            --md-sys-elevation-1: 0 1px 2px rgba(0,0,0,0.3), 0 1px 3px 1px rgba(0,0,0,0.15);
            --md-sys-elevation-2: 0 1px 2px rgba(0,0,0,0.3), 0 2px 6px 2px rgba(0,0,0,0.15);
            --md-sys-elevation-3: 0 4px 8px 3px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.3);
        }
        
        body {
            font-family: 'Roboto', sans-serif;
            background-color: var(--md-sys-color-background);
            color: var(--md-sys-color-on-background);
            margin: 0;
            padding: 0;
        }
        
        .container {
            max-width: 1000px;
            padding-top: 2rem;
            padding-bottom: 2rem;
        }
        
        h1 {
            color: var(--md-sys-color-primary);
            font-weight: 500;
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
        }
        
        .md3-card {
            border-radius: var(--md-sys-shape-corner-large);
            box-shadow: var(--md-sys-elevation-1);
            border: none;
            margin-bottom: 1.5rem;
            overflow: hidden;
        }
        
        .card-header {
            font-weight: 500;
            font-size: 1.25rem;
            padding: 1rem 1.5rem;
            border-bottom: none;
        }
        
        .card-body {
            padding: 1.5rem;
        }
        
        .card-primary {
            background-color: var(--md-sys-color-primary-container);
        }
        
        .card-primary .card-header {
            background-color: var(--md-sys-color-primary);
            color: var(--md-sys-color-on-primary);
        }
        
        .card-primary .card-body {
            color: var(--md-sys-color-on-primary-container);
        }
        
        .card-secondary {
            background-color: var(--md-sys-color-secondary-container);
        }
        
        .card-secondary .card-header {
            background-color: var(--md-sys-color-secondary);
            color: var(--md-sys-color-on-secondary);
        }
        
        .card-secondary .card-body {
            color: var(--md-sys-color-on-secondary-container);
        }
        
        .card-tertiary {
            background-color: var(--md-sys-color-tertiary-container);
        }
        
        .card-tertiary .card-header {
            background-color: var(--md-sys-color-tertiary);
            color: var(--md-sys-color-on-tertiary);
        }
        
        .card-tertiary .card-body {
            color: var(--md-sys-color-on-tertiary-container);
        }
        
        .card-surface {
            background-color: var(--md-sys-color-surface);
        }
        
        .card-surface .card-header {
            background-color: var(--md-sys-color-surface-variant);
            color: var(--md-sys-color-on-surface-variant);
        }
        
        .key-concept {
            font-weight: 500;
            color: var(--md-sys-color-primary);
        }
        
        .formula {
            font-weight: 500;
            padding: 10px;
            background-color: rgba(0, 0, 0, 0.05);
            border-radius: var(--md-sys-shape-corner-small);
            text-align: center;
            margin: 0.5rem 0;
            font-size: 1.1rem;
        }
        
        .highlight {
            font-weight: 500;
            color: var(--md-sys-color-primary);
        }
        
        .highlight-tertiary {
            font-weight: 500;
            color: var(--md-sys-color-tertiary);
        }
        
        .md3-btn {
            display: inline-block;
            height: 40px;
            padding: 0 24px;
            border-radius: 20px;
            font-size: 0.875rem;
            font-weight: 500;
            letter-spacing: 0.1px;
            text-transform: uppercase;
            line-height: 40px;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            transition: background-color 0.2s;
            border: none;
            margin-right: 8px;
        }
        
        .md3-btn-primary {
            background-color: var(--md-sys-color-primary);
            color: var(--md-sys-color-on-primary);
        }
        
        .md3-btn-primary:hover {
            background-color: var(--md-sys-color-primary);
            opacity: 0.9;
            color: var(--md-sys-color-on-primary);
        }
        
        .md3-btn-secondary {
            background-color: var(--md-sys-color-secondary-container);
            color: var(--md-sys-color-on-secondary-container);
        }
        
        .md3-btn-secondary:hover {
            background-color: var(--md-sys-color-secondary-container);
            opacity: 0.9;
            color: var(--md-sys-color-on-secondary-container);
        }

        .katex-formula {
            background-color: var(--md-sys-color-surface-variant);
            color: var(--md-sys-color-on-surface-variant);
            padding: 16px;
            border-radius: var(--md-sys-shape-corner-small);
            text-align: center;
            margin: 20px 0;
            font-size: 1.1rem;
            overflow-x: auto;
        }

        .katex-formula.highlight {
            background-color: var(--md-sys-color-primary-container);
            color: var(--md-sys-color-on-primary-container);
            border: 1px solid var(--md-sys-color-primary);
        }

        /* 确保KaTeX公式在容器中居中 */
        .katex {
            display: inline-block;
            text-align: center;
        }

        /* 调整KaTeX公式的字体大小 */
        .katex {
            font-size: 1.1em;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="text-center">斜坡运动解析</h1>
        
        <div class="card md3-card card-primary">
            <div class="card-header">
                <h2>基本原理</h2>
            </div>
            <div class="card-body">
                <p>斜坡运动是一种典型的力学现象，涉及<span class="highlight">重力</span>、<span class="highlight">摩擦力</span>和<span class="highlight">支持力</span>的综合作用。物体在斜面上的运动状态取决于重力分量、摩擦力以及斜面倾角等因素。</p>
                <p>在斜面上，重力可分解为<span class="highlight-tertiary">平行于斜面的分力</span>（驱动力）和<span class="highlight-tertiary">垂直于斜面的分力</span>（压力）。物体是否滑动取决于平行分力是否大于最大静摩擦力。</p>
            </div>
        </div>

        <div class="card md3-card card-secondary">
            <div class="card-header">
                <h2>数学表达</h2>
            </div>
            <div class="card-body">
                <p>重力分量和压力：</p>
                <div class="katex-formula">
                    \[ F_g = mg\sin\theta \quad \text{(平行分量)} \]
                </div>
                <div class="katex-formula">
                    \[ N = mg\cos\theta \quad \text{(垂直分量)} \]
                </div>
                <p>摩擦力：</p>
                <div class="katex-formula">
                    \[ f = \mu N = \mu mg\cos\theta \]
                </div>
                <p>加速度：</p>
                <div class="katex-formula">
                    \[ a = g(\sin\theta - \mu\cos\theta) \]
                </div>
                <p>运动条件：</p>
                <div class="katex-formula">
                    \[ \begin{array}{lcl}
                    \sin\theta > \mu\cos\theta & \Rightarrow & \text{物体开始滑动} \\
                    \sin\theta = \mu\cos\theta & \Rightarrow & \text{临界状态} \\
                    \sin\theta < \mu\cos\theta & \Rightarrow & \text{物体静止不动}
                    \end{array} \]
                </div>
            </div>
        </div>

        <div class="card md3-card card-tertiary">
            <div class="card-header">
                <h2>应用场景</h2>
            </div>
            <div class="card-body">
                <ul>
                    <li><span class="key-concept">工程设计</span>：如滑梯、输送带、坡道等</li>
                    <li><span class="key-concept">交通运输</span>：如公路坡度设计、铁路坡度限制等</li>
                    <li><span class="key-concept">建筑工程</span>：如楼梯、无障碍通道设计等</li>
                    <li><span class="key-concept">运动场地</span>：如滑雪场、跳台等运动设施</li>
                </ul>
                <p>斜坡运动的理解对于<span class="highlight">安全设计</span>和<span class="highlight">能源效率</span>具有重要意义。</p>
            </div>
        </div>

        <div class="card md3-card card-surface">
            <div class="card-header">
                <h2>关键概念</h2>
            </div>
            <div class="card-body">
                <ul>
                    <li><span class="highlight">力的分解</span>：重力在斜面上可分解为平行和垂直两个分量，它们分别决定物体的运动状态和压力。</li>
                    <li><span class="highlight">摩擦力</span>：静摩擦力和动摩擦力的区别在于，静摩擦力有最大值但可变，动摩擦力则基本恒定。</li>
                    <li><span class="highlight">临界角</span>：物体开始滑动的最小角度，与摩擦系数有关：θ<sub>临界</sub> = arctan(μ)</li>
                    <li><span class="highlight">能量转换</span>：在斜面上滑动过程中，重力势能转化为动能和热能（由摩擦产生）。</li>
                </ul>
            </div>
        </div>

        <div class="text-center mt-4">
            <a href="/ramp" class="md3-btn md3-btn-primary">开始实验</a>
            <a href="/" class="md3-btn md3-btn-secondary">返回首页</a>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
    <!-- KaTeX JS -->
    <script src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js"></script>
    <script>
        document.addEventListener("DOMContentLoaded", function() {
            renderMathInElement(document.body, {
                delimiters: [
                    {left: "\\[", right: "\\]", display: true},
                    {left: "\\(", right: "\\)", display: false}
                ],
                throwOnError: false,
                strict: false,
                trust: true
            });
        });
    </script>
</body>
</html> 